package com.cloudkinto.service.platform.vo.shopify;

import lombok.Data;

@Data
public class Customer {
//     "id": 7635669811352,
//             "email": "7oops7050@au.com",
//             "created_at": "2024-12-31T08:46:38+08:00",
//             "updated_at": "2024-12-31T08:47:23+08:00",
//             "first_name": "尚子",
//             "last_name": "津波",
//             "state": "disabled",
//             "note": null,
//             "verified_email": true,
//             "multipass_identifier": null,
//             "tax_exempt": false,
//             "phone": "+819068596050",
//             "email_marketing_consent": {
//        "state": "subscribed",
//                "opt_in_level": "single_opt_in",
//                "consent_updated_at": "2024-12-31T08:47:13+08:00"
//    },
//            "sms_marketing_consent": {
//        "state": "not_subscribed",
//                "opt_in_level": "single_opt_in",
//                "consent_updated_at": null,
//                "consent_collected_from": "OTHER"
//    },
//            "tags": "",
//            "currency": "JPY",
//            "tax_exemptions": [],
//            "admin_graphql_api_id": "gid://shopify/Customer/7635669811352",
//            "default_address": {
//        "id": 8732406972568,
//                "customer_id": 7635669811352,
//                "first_name": "尚子",
//                "last_name": "津波",
//                "company": null,
//                "address1": "宜保3-2-4",
//                "address2": null,
//                "city": "豊見城市",
//                "province": "Okinawa",
//                "country": "Japan",
//                "zip": "901-0244",
//                "phone": "09068596050",
//                "name": "尚子 津波",
//                "province_code": "JP-47",
//                "country_code": "JP",
//                "country_name": "Japan",
//                "default": true
//    }

    private Long id;

    private String email;

    private String fistName;

    private String lastName;

    private String firstName;

    private String phone;


    public String getFistName() {
        if (firstName == null) return "";
        return fistName;
    }

    public String getLastName() {
        if (lastName == null) return "";
        return lastName;
    }
}
